package com.hotel.tv.repositories.query;

import com.autumn.domain.repositories.DefaultEntityRepository;
import com.autumn.mybatis.mapper.annotation.MapperViewSelect;
import com.hotel.tv.entities.query.OrderItemQuery;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * </p>
 *
 * @description TODO
 * @author: 老码农
 * @create: 2020-04-07 11:32
 **/
@Repository
@MapperViewSelect("select a.id,a.item_number,a.item_name,a.order_id,a.item_user_id," +
        "b.user_name,b.nick_name,b.real_name from b_order_item as a INNER JOIN sys_user as b on a.item_user_id = b.id")
public interface OrderItemQueryRepository extends DefaultEntityRepository<OrderItemQuery> {

}
